<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let arr = ['pink', 'red', 'green']

        // 增加 push是从后面添加
        // console.log(arr.push('lucy', 'coooke', 'dalin'));  // 6 返回个数
        arr.push('lucy', 'coooke', 'dalin')
        console.log(arr);
        
        // 增加，unshift 从前面添加
        arr.unshift('张三','李四','王五')
        console.log(arr);
    </script>
</body>

</html>